# start = time.perf_counter()
# nums = []
# for i in range(10000):
#     nums.append(i ** 2)
# end = time.perf_counter()
# print(end - start)
import time


def timer(fun):
    def wrapper(*args, **kwargs):
        start = time.perf_counter()
        fun(*args, **kwargs)
        stop = time.perf_counter()
        return stop - start

    return wrapper


@timer
def my_fun():
    nums = []
    for i in range(10000):
        nums.append(i ** 2)


res = my_fun()
print(res)
